import * as React from 'react'
import Hello from '../components/Hello'
import List from './List/List'

export interface IProps {
  name: string;
  enthusiasmLevel?: number;
  onIncrement?: () => void;
  onDecrement?: () => void
}

class App extends React.Component<IProps, any> {

  myClickhandler = (data: string) => {
    console.log('App event', data)
  }

  render() {
    return (
      <div className="App">
        <Hello title="biaoti" age={20} onMyClick={this.myClickhandler} />
        <List />
      </div>
    )
  }
}

export default App
